package com.sjk.pojo;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

import java.io.Serializable;

/**
 * @author lohhhha
 * 2023/5/16
 */

@SuppressWarnings("all")
@Table(name = "user")
@Entity
public class User implements Serializable {
    @Id
    @SuppressWarnings("all")
    @Column(name = "username")
    private String username;
    @SuppressWarnings("all")
    @Column(name = "password")
    private String password;
    @SuppressWarnings("all")
    @Column(name = "gender")
    private String gender;
    @SuppressWarnings("all")
    @Column(name = "age")
    private int age;
    @SuppressWarnings("all")
    @Column(name = "name")
    private String name;
    @SuppressWarnings("all")
    @Column(name = "birthdate")
    private String birthdate;
    @SuppressWarnings("all")
    @Column(name = "phonenum")
    private String phonenum;
    @SuppressWarnings("all")
    @Column(name = "phonenum_encrypt")
    private String phonenum_encrypt;
    @SuppressWarnings("all")
    @Column(name = "phonenum4_encrypt")
    private String phonenum4_encrypt;
    @SuppressWarnings("all")
    @Column(name = "id")
    private String id;
    @SuppressWarnings("all")
    @Column(name = "id_encrypt")
    private String id_encrypt;
    @SuppressWarnings("all")
    @Column(name = "id6_encrypt")
    private String id6_encrypt;
    @SuppressWarnings("all")
    @Column(name = "address")
    private String address;
    @SuppressWarnings("all")
    @Column(name = "authority")
    private int authority;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(String birthdate) {
        this.birthdate = birthdate;
    }

    public String getPhonenum() {
        return phonenum;
    }

    public void setPhonenum(String phonenum) {
        this.phonenum = phonenum;
    }

    public String getPhonenum_encrypt() {
        return phonenum_encrypt;
    }

    public void setPhonenum_encrypt(String phonenum_encrypt) {
        this.phonenum_encrypt = phonenum_encrypt;
    }

    public String getPhonenum4_encrypt() {
        return phonenum4_encrypt;
    }

    public void setPhonenum4_encrypt(String phonenum4_encrypt) {
        this.phonenum4_encrypt = phonenum4_encrypt;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId_encrypt() {
        return id_encrypt;
    }

    public void setId_encrypt(String id_encrypt) {
        this.id_encrypt = id_encrypt;
    }

    public String getId6_encrypt() {
        return id6_encrypt;
    }

    public void setId6_encrypt(String id6_encrypt) {
        this.id6_encrypt = id6_encrypt;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getAuthority() {
        return authority;
    }

    public void setAuthority(int authority) {
        this.authority = authority;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", age=" + age +
                ", birthdate='" + birthdate + '\'' +
                ", phonenum='" + phonenum + '\'' +
                ", phonenum_encrypt='" + phonenum_encrypt + '\'' +
                ", phonenum4_encrypt='" + phonenum4_encrypt + '\'' +
                ", id='" + id + '\'' +
                ", id_encrypt='" + id_encrypt + '\'' +
                ", id6_encrypt='" + id6_encrypt + '\'' +
                ", address='" + address + '\'' +
                ", authority=" + authority +
                '}';
    }
}
